import {
  Ajax
} from '../../utils/index'

export const loginApi = data => {
  const res = Ajax({
    url: '/login',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
  return res;
}